package com.atguigu.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by RUI on 2021/6/15 9:57
 */
public class MyUtils {
    public static <T> List<T> toList(Iterable<T> it) {

        List<T> result = new ArrayList<>();
        for (T t : it) {
            result.add(t);
        }
        return result;
    }
}
